import request from './request' // axios 实例

export const getCategories = () => request.get('/categories')
export const createCategory = (data) => request.post('/categories', data)
export const updateCategory = (data) => request.put(`/categories/${data.id}`, data)
export const deleteCategory = (id) => request.delete(`/categories/${id}`)
